package org.panxiong.openapi.model;

import java.io.Serializable;
import java.util.List;

public class FieldModel implements Serializable {

    // 映射名称
    protected String mappingName;

    // 变量名称
    protected String varName;

    // 数据类型
    protected String dateType;

    // 是否必须
    protected Boolean required;

    // 默认值
    protected Object defValue;

    // 示例数据
    protected Object example;

    // 字段说明
    protected String described;

    // 结构信息
    protected List<FieldModel> struct;

    // 子地段 （struct 与 children 不会同时存在）
    protected List<FieldModel> children;

    public FieldModel() {
    }

    public String getMappingName() {
        return mappingName;
    }

    public void setMappingName(String mappingName) {
        this.mappingName = mappingName;
    }

    public String getVarName() {
        return varName;
    }

    public void setVarName(String varName) {
        this.varName = varName;
    }

    public String getDateType() {
        return dateType;
    }

    public void setDateType(String dateType) {
        this.dateType = dateType;
    }

    public Boolean getRequired() {
        return required;
    }

    public void setRequired(Boolean required) {
        this.required = required;
    }

    public Object getDefValue() {
        return defValue;
    }

    public void setDefValue(Object defValue) {
        this.defValue = defValue;
    }

    public Object getExample() {
        return example;
    }

    public void setExample(Object example) {
        this.example = example;
    }

    public String getDescribed() {
        return described;
    }

    public void setDescribed(String described) {
        this.described = described;
    }

    public List<FieldModel> getStruct() {
        return struct;
    }

    public void setStruct(List<FieldModel> struct) {
        this.struct = struct;
    }

    public List<FieldModel> getChildren() {
        return children;
    }

    public void setChildren(List<FieldModel> children) {
        this.children = children;
    }
}
